package restless.core {
	import flash.geom.Point;
	
	/**
	 * @author Jordan Laine
	*/
	
	public class RLEFlashAnimationPoint {
		
		private var _id:String;
		private var tempPoint:Point;
		private var _index:int;
		private var _points:Vector.<Point> = new Vector.<Point>;
		private var _lastPoint:Point = new Point();
		private var _parentID:String;
		
		public function set id(string:String):void {
			_id = string;
		}
		
		public function get id():String {
			return _id;
		}
		
		public function addPoint(p:Point):void {
			tempPoint = p;
			_points.push(tempPoint);
			_lastPoint = tempPoint;
		}
		
		public function get points():Vector.<Point> {
			return _points;
		}
		
		public function set index(n:int):void {
			_index = n;
		}
		
		public function get parentID():String {
			return _parentID;
		}
		
		public function set parentID(string:String):void {
			_parentID = string;
		}
		
		public function get lastPoint():Point {
			return _lastPoint;
		}
		
		public function dispose():void {
			tempPoint = null;
			_lastPoint = null;
			_points = null;
		}
		
	}

}